package com.blog.service;

import com.blog.pojo.User;

import java.util.List;

public interface UserService {
    //添加用户
    public User addUser(User user);
    //删除
    public boolean delete(int id);
    //修改
    public boolean update(User user);

    //查询所有
    public List<User> findAll();
    //根据id查询
    public User findById(int id);

    public boolean addExperience(int uId,int experiencePoints);
    public boolean reduceExperience(int uId,int experiencePoints);
    public int findExperience(int uId);
    //查询--用户名
    public User findByUserName(String username);

}
